﻿using DX_DailyUtil_1._0._1.ks.util;
using System;
using System.ComponentModel;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Runtime.Serialization;
using System.Collections.Generic;

namespace DX_DailyUtil_1._0._1.ks.objt.share
{
    public class Objt_Base : Notify_PropChag
    {
        protected long id;
        protected bool isEnable = true;
        protected bool isSelected;

        public bool IsSelected
        {
            get { return isSelected; }
            set { isSelected = value; }
        }

        public bool IsEnable
        {
            get { return isEnable; }
            set { isEnable = value; }
        }

        public long Id
        {
            get { return id; }
            set { id = value; }
        }

        public Objt_Base()
        {
        }

        public Objt_Base(long aId)
        {
            this.id = aId;
        }

        //public event PropertyChangedEventHandler PropertyChanged;

        //public void OnPropertyChanged(string propertyName)
        //{
        //    PropertyChangedEventHandler handler = this.PropertyChanged;
        //    if (handler != null)
        //    {
        //        handler(this, new PropertyChangedEventArgs(propertyName));
        //    }
        //}
    }
}
